package com.hr.service.impl;
import java.util.List;

import com.hr.dao.UploadDao;
import com.hr.dao.impl.UploadDaoImpl;
import com.hr.pojo.Upload;
import com.hr.service.UploadService;
public class UploadServiceImpl implements UploadService{
	private UploadDao uploadDao = new UploadDaoImpl();
	@Override
	public List findAllUploads() {
		return uploadDao.findAllUploads();
	}
	@Override
	public void saveUpload(Upload upload) {
		
		uploadDao.saveUpload(upload);
	}
	@Override
	public Upload findUploadById(String id) {
		
		return uploadDao. findUploadById(id);
	}
	@Override
	public void updateUpload(Upload upload) {
		
		uploadDao.updateUpload(upload);	
	}
	@Override
	public void delete(String id) {
	
		uploadDao.deleteUpload(id);	
	}
}
